import request from '../service/network'

// 获取用户Token
export function getUserToken(options) {
  return request({
    url: '/users/wxlogin',
    data: options.data,
    method:options.method
  })
}

// 创建订单
export function createOrder(options) {
  return request({
    url: '/my/orders/create',
    data: options.data,
    method:options.method
  })
}

//预支付参数
export function rePay(options) {
  return request({
    url: '/my/orders/req_unifiedorder',
    data: options.data,
    method:options.method
  })
}

//查询订单状态
export function order_status(options) {
  return request({
    url: '/my/orders/chkOrder',
    data: options.data,
    method:options.method
  })
}
